#include "httpserver.hpp"

#include <cstring>

using namespace HttpSeverModule;


int main(int argc,char* argv[])
{
    daemon(1,0);
    ENABLE_FILE_LOG();
    if(argc != 2)
        return 1;
    uint16_t port = std::stoi(argv[1]);
    auto httpsvr = std::make_unique<HttpSever>(port);
    httpsvr->Start();
    return 0;
}